import request from '@/utils/request'

// 查询后厨加工情况列表
export function listShow(query) {
  return request({
    url: '/jiagong/show/list',
    method: 'get',
    params: query
  })
}

// 查询后厨加工情况详细
export function getShow(makeId) {
  return request({
    url: '/jiagong/show/' + makeId,
    method: 'get'
  })
}

// 新增后厨加工情况
export function addShow(data) {
  return request({
    url: '/jiagong/show',
    method: 'post',
    data: data
  })
}

// 修改后厨加工情况
export function updateShow(data) {
  return request({
    url: '/jiagong/show',
    method: 'put',
    data: data
  })
}

// 删除后厨加工情况
export function delShow(makeId) {
  return request({
    url: '/jiagong/show/' + makeId,
    method: 'delete'
  })
}

// 获得饼状图数据
export function getPieData() {
  return request({
    url: '/jiagong/show/testchartsv2',
    method: 'get'
  })
}
